﻿/* =========================================================

文件名称:base.js
文件描述:基础js库
设计作者:孙倩
编码作者:孙倩
完成日期:2016-11-29

========================================================= */
/*页面引用示例：modulelist = [ "jquery-1.11.2", "lhgdialog-4.2.0", "easyUI-1.4.5", "formater-2.10.6",
 "blockui-2.70.0", "highcharts-4.0.3", "knockout-3.3.0", "uploadify-2.2","artTemplate-3.0.0","echarts","echarts-3.6.2"
 "treeList", "datagrid", "permission", "highlight","validate","dataTypeCtrl","polluteList","queryAreaOrPoint","bootstrap","datepicker","wangEditor"];*/


if(projectName==="bfs"){
	document.write('<link rel="stylesheet" title="skin" type="text/css" href="/'
			+ bfsprojectName
			+ '/skin/'+skin+'/styles/page.css"/>');
	if(window.location.href.indexOf("desktop")==-1){
		document.write('<link rel="stylesheet" title="skin" type="text/css" href="/'
				+ bfsprojectName
				+ '/skin/'+skin+'/styles/systemNav.css"/>');
	}		
} 

var jsData = {
	"jquery-1.11.2" : [ {src : '<script type="text/javascript" src="/' + bfsprojectName + '/lib/scripts/jquery/1.11.2/jquery-min.eccbc87e4b5ce2fe28308fd9f2a7baf3.js"></script>'} ],
	"lhgdialog-4.2.0" : [ {src : '<script type="text/javascript" src="/' + bfsprojectName + '/lib/scripts/lhgdialog/4.2.0/lhgdialog.min.a87ff679a2f3e71d9181a67b7542122c.js"></script>'} ],
	"easyUI-1.4.5" : [
	        {src : '<link rel="stylesheet" type="text/css" href="/' + bfsprojectName + '/lib/styles/easyUI/gray/easyui.e4da3b7fbbce2345d7772b0674a318d5.css"/>'},
			{src : '<link rel="stylesheet" type="text/css" href="/' + bfsprojectName + '/lib/styles/easyUI/icon.e4da3b7fbbce2345d7772b0674a318d5.css"/>'},
			{src : '<script type="text/javascript" src="/' + bfsprojectName + '/lib/scripts/easyui/1.4.5/jquery.easyui.min.e4da3b7fbbce2345d7772b0674a313d5.js"></script>'},
			{src : '<script type="text/javascript" src="/' + bfsprojectName + '/lib/scripts/easyui/1.4.5/locale/easyui-lang-zh_CN.e4da3b7fbbce2345d7772b0674a318d5.js"></script>'},
			{src : '<link rel="stylesheet" type="text/css" title="skin" href="/' + bfsprojectName + '/skin/'+skin+'/styles/ControlStyle.css"/>'} ,
			{
				src : '<script type="text/javascript" src="/'
					+ bfsprojectName
					+ '/common/scripts/com/easyuiPanelOnMove.js"></script>'
			}
			],
	"formater-2.10.6" : [ {src : '<script type="text/javascript" src="/' + bfsprojectName + '/lib/scripts/formater/2.10.6/moment.min.1679091c5a880faf6fb5e6087eb1b2dc.js"></script>'} ],
	"blockui-2.70.0" : [ {src : '<script type="text/javascript" src="/' + bfsprojectName + '/lib/scripts/blockui/2.70.0/jquery.blockUI.c81e728d9d4c2f636f067f89cc14862c.js"></script>'} ],
	"highcharts-4.0.3" : [ {
		src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/highcharts/4.0.3/highcharts.8f14e45fceea167a5a36dedd4bea2543.js"></script>'
	} ],
	"knockout-3.3.0" : [
			{
				src : '<script type="text/javascript" src="/'
						+ bfsprojectName
						+ '/lib/scripts/knockout/3.3.0/knockout.c9f0f895fb98ab9159f51fd0297e236d.js"></script>'
			},
			{
				src : '<script type="text/javascript" src="/'
						+ bfsprojectName
						+ '/lib/scripts/knockout/3.3.0/knockout.mapping.c9f0f895fb98ab9159f51fd0297e236d.js"></script>'
			},
			{
				src : '<script type="text/javascript" src="/'
						+ bfsprojectName
						+ '/lib/scripts/knockout/3.3.0/koEasyUI.c9f0f895fb98ab9159f51fd0297e236d.js"></script>'
			} ],
	"sm3" : [
		{
			src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/algorithm/sm3/core.js"></script>'
		},
		{
			src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/algorithm/sm3/jsbn.js"></script>'
		},
		{
			src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/algorithm/sm3/jsbn2.js"></script>'
		},
		{
			src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/algorithm/sm3/sm3.js"></script>'
		}],
	"rsa" : [
		{
			src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/algorithm/rsa/Barrett.js"></script>'
		},
		{
			src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/algorithm/rsa/BigInt.js"></script>'
		},
		{
			src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/algorithm/rsa/RSA.js"></script>'
		}],
	"uploadify-2.2" : [ {
		src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/uploadify/2.2/jquery.uploadify.min.45c48cce2e2d7fbdea1afc51c7c6ad26.js"></script>'
	} ],
	"uploadify-3.2" : [ {
		src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/uploadify/3.2/jquery.uploadify.min.js"></script>'
	},
	{
		src : '<link rel="stylesheet" type="text/css" href="/'
				+ bfsprojectName
				+ '/lib/scripts/uploadify/3.2/uploadify.css"/>'
	}],
	"uploadify-h5" : [ {
		src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/uploadify/h5/1.2.2/jquery.uploadifive.min.js"></script>'
	},
	{
		src : '<link rel="stylesheet" type="text/css" href="/'
				+ bfsprojectName
				+ '/lib/scripts/uploadify/h5/1.2.2/uploadifive.css"/>'
	}],
	"artTemplate-3.0.0" : [ {
		src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/lib/scripts/artTemplate/3.0.0/template.c4ca4238a0b923820dcc509a6f75849b.js?"></script>'
	} ],
	"treeList" : [
			{
				src : '<script type="text/javascript" src="/'
						+ bfsprojectName
						+ '/component/treeList/treeList.d3d9446802a44259755d38e6d163e820.js"></script>'
			},
			{
				src : '<link rel="stylesheet" title="skin" type="text/css" href="/'
						+ bfsprojectName
						+ '/skin/'+skin+'/styles/treeList.d3d9446802a44259755d38e6d163e821.css"/>'
			}],
	"datagrid" : [
			{
				src : '<script type="text/javascript" src="/'
						+ bfsprojectName
						+ '/component/datagrid/gridHelper.6512bd43d9caa6e02c990b0a82652dca.js"></script>'
			},
			{
				src : '<script type="text/javascript" src="/'
						+ bfsprojectName
						+ '/component/datagrid/gridDynamic.6512bd43d9caa6e02c990b0a82652dca.js"></script>'
			} ],
	"permission" : [ {
		src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/component/permission/menuButton.c20ad4d76fe97759aa27a0c99bff6710.js"></script>'
	} ],
	"highlight" : [ {
		src : '<script type="text/javascript" src="/' + bfsprojectName + '/lib/scripts/jquery/1.11.2/jquery.highlight.js"></script>'
	} ],
	"echarts" : [ {
		src : '<script type="text/javascript" src="/' + bfsprojectName + '/lib/scripts/echarts/2.0.2/echarts.js"></script>'
	},{
		src : '<script type="text/javascript" src="/' + bfsprojectName + '/lib/scripts/echarts/2.0.2/macarons.js"></script>'
	} ],
	"echarts-3.6.2" : [ {
		src : '<script type="text/javascript" src="/' + bfsprojectName + '/lib/scripts/echarts/3.6.2/echarts.js"></script>'
	} ],
	"validate" : [ {
		src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/common/scripts/com/easyuiValidateExt.c51ce410c124a10e0db5e4b97fc2af39.js"></script>'
	} ],
	"dataTypeCtrl" : [ {
		src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/component/query/dataTypeCtrl.aab3238922bcc25a6f606eb555ffdc56.js"></script>'
	} ],
	"polluteList" : [ {
		src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/component/query/polluteList.js"></script>'
	} ],
	"queryAreaOrPoint" : [ {
		src : '<script type="text/javascript" src="/'
				+ bfsprojectName
				+ '/component/query/queryAreaOrPoint.js"></script>'
	} ],
	"bootstrap" : [ {
		src : '<link rel="stylesheet" type="text/css" href="/'
				+ bfsprojectName
				+ '/lib/styles/bootstrap/css/bootstrap.min.9bf31c7ff062936a96d3c8bd1f8f2ff3.css"/>'
	} ],
	"datepicker":[ {
		src : '<link rel="stylesheet" type="text/css" href="/'
			+ bfsprojectName
			+ '/lib/scripts/bootstrap/css/bootstrap-datetimepicker.min.css"/>'
	},{
		src : '<script type="text/javascript" src="/'
			+ bfsprojectName
			+ '/lib/scripts/bootstrap/js/bootstrap2.js"></script>'
	},{
		src : '<script type="text/javascript" src="/'
			+ bfsprojectName
			+ '/lib/scripts/bootstrap/js/bootstrap-datetimepicker2.js"></script>'
	},{
		src : '<script type="text/javascript" src="/'
			+ bfsprojectName
			+ '/lib/scripts/bootstrap/js/bootstrap-datetimepicker.zh-CN.js"></script>'
	},{
		src : '<script type="text/javascript" src="/'
			+ bfsprojectName
			+ '/component/query/bootstrapDateTypeCtrl.js"></script>'
	} ],
	"wangEditor" : [ {
		src : '<link rel="stylesheet" type="text/css" href="/'
			+ bfsprojectName
			+ '/lib/scripts/wangeditor/css/wangEditor.min.css"/>'
	},{
		src : '<script type="text/javascript" src="/'
			+ bfsprojectName
			+ '/lib/scripts/wangeditor/js/wangEditor.min.js"></script>'
	} ],
	"basicCommon" : [ {
		src : '<script type="text/javascript" src="/'
			+ bfsprojectName
			+ '/common/scripts/basicCommon.6f4922f45568161a8cdf4ad2299f6d23.js"></script>'
	} ],
	"qrcode" : [ {
		src : '<script type="text/javascript" src="/'
			+ bfsprojectName
			+ '/lib/scripts/qrcode/1.0/qrcode.js"></script>'
	} ]
};

for (var i = 0; i < modulelist.length; i++) {
	var srcList = jsData[modulelist[i]];
	if(modulelist[i].indexOf("uploadify") !== -1){
		if (window.applicationCache) {
			srcList = jsData["uploadify-h5"];
		}
	}	
	for (var j = 0; j < srcList.length; j++) {
		document.write(srcList[j].src);
	}
}
document.write('<link rel="stylesheet" title="skin" type="text/css" href="/' + bfsprojectName + '/skin/'+skin+'/styles/basic.c74d97b01eae257e44aa9d5bade97baf.css"/>');
document.write('<script type="text/javascript" src="/'+ bfsprojectName+ '/common/scripts/com/common.70efdf2ec9b086079795c442636b55fb.js"></script>');
